answer "Format letter and go to word processor?" with "Cancel" or "OK"
if it is "OK" then
put the date into field "Sent"
set lockScreen to true
put field "Letter" into temp
if field "Type" is "Personal" then
put "Shareware $15" & return & the long date & return & "Dear" && word 1 of field "From" & ":" & return before field "Letter"
put return & CL after field "Letter"
else
put "Shareware $15" & return & the long date & return & field "From" & return & "Company" & return & "Street" & return & "Address" & return & "Dear" && field "From" & return before field "Letter"
put return & BC after field "Letter"
end if
type tab
type tab with shiftKey
doMenu "Copy Text"
put temp into field "Letter"
go to card "Title"
answer "Remember to “Paste” in your word processor."
open WP
set lockscreen to false
end if
else
answer "You haven’t written this letter yet!"
end if
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=6 top=181 right=225 bottom=49
-- title width / last selected line: 0
-- icon id / first selected line: 8538 / 8538
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Find
----- HyperTalk script -----
on mouseUp
ask "What would you like to find?"
find it
end mouseUp
-- part 20 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=6 top=233 right=277 bottom=50
-- title width / last selected line: 0
-- icon id / first selected line: 20186 / 20186
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Setup
----- HyperTalk script -----
on mouseUp
answer "Sort by:" with "Name" or "Received" or "Sent"